package com.hmall.common.clients;

import com.hmall.common.dto.Address;
import com.hmall.common.intercept.MyFeignInterceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zx
 * @date 2021/11/9 11:13
 */
@FeignClient(value = "userservice",configuration = MyFeignInterceptor.class)
@RequestMapping("/address")
public interface UserClient {
    @GetMapping("{id}")
    Address findAddressById(@PathVariable("id") Long id);
}
